import Login from "./views/lifegroup/login/LoginLifeGroup.vue"; //life集团登录页  如果打包部署项目要用此登录页  就切换此组件引入
import NotFound from "./views/404.vue";
import Main from "./views/Main.vue";

/* life集团项目  by guo 2019-12-09-13:22 添加*/
import Setquestion from "./views/lifegroup/Setquestion.vue"; //设置问题
import PasswordForgot from "./views/lifegroup/PasswordForgot.vue"; //忘记密码
import PasswordRetrieve from "./views/lifegroup/PasswordRetrieve.vue"; //密码找回
import RoomGeneralViewManagement from "./views/lifegroup/roomGeneralViewManagement/RoomGeneralViewManagement.vue"; //房间一览画面
import RoomGeneralViewDetail from "./views/lifegroup/roomGeneralViewManagement/RoomGeneralViewDetail.vue"; //房间一览画面详情
import LifesignDetail from "./views/lifegroup/roomgeneralviewmanagement/LifesignDetail.vue"; //生命体征详情
import HabitableRoomManagement from "./views/lifegroup/habitableroommanagement/HabitableRoomManagement.vue"; //居室管理
import HabitableRoomDetail from "./views/lifegroup/habitableroommanagement/HabitableRoomDetail.vue"; //居室详情
import SensorSettings from "./views/lifegroup/habitableroommanagement/SensorSettings.vue"; //居室传感器设置
import ResidentManagement from "./views/lifegroup/residentmanagement/ResidentManagement.vue"; //入居者管理
import ResidentDetail from "./views/lifegroup/residentmanagement/ResidentDetail.vue"; //入居者详情
//import EquipmentManagement from './views/lifegroup/equipmentManagement.vue/EquipmentManagement.vue';//设备管理
import EquipmentManagement from "./views/lifegroup/equipmentManagement/EquipmentManagement.vue"; //设备管理
import EquipmentStatus from "./views/lifegroup/equipmentManagement/EquipmentStatus.vue"; //设备在离线状态 by xiang 2020-3-3
import equipmentAdd from "./views/lifegroup/equipmentManagement/equipmentAdd.vue"; //设备管理添加
import CameraManagement from "./views/lifegroup/equipmentManagement/CameraManagement.vue"; //摄像头管理
import BedpadManagement from "./views/lifegroup/equipmentManagement/BedpadManagement.vue"; //床垫管理
import PeopleFeelManagement from "./views/lifegroup/equipmentManagement/PeopleFeelManagement.vue"; //人感红外管理
import IndoorTemperatureManagement from "./views/lifegroup/equipmentManagement/IndoorTemperatureManagement.vue"; //室温管理
import GatewayManagement from "./views/lifegroup/equipmentManagement/GatewayManagement.vue"; //网关管理
import FacilityManagement from "./views/lifegroup/facilityManagement/FacilityManagement.vue"; //设施管理
import FacilityInformationEdit from "./views/lifegroup/facilityManagement/FacilityInformationEdit.vue"; //设施信息设置
import FacilityAlarmColor from "./views/lifegroup/facilityManagement/FacilityAlarmColor.vue"; //报警设置
import FacilityBuildFloorAdd from "./views/lifegroup/facilityManagement/FacilityBuildFloorAdd.vue"; //楼栋以及层数的设置
import FacilitySensorSet from "./views/lifegroup/facilityManagement/FacilitySensorSet.vue"; //设施管理传感器设定初始值
import StaffManagement from "./views/lifegroup/staffManagement/StaffManagement.vue"; //工作人员管理
import StaffCompile from "./views/lifegroup/staffManagement/StaffCompile.vue"; //工作人员信息追加
import PasswordChange from "./views/lifegroup/passwordchange/PasswordChange.vue"; //密码变更
import RoomGeneralViewDetailWebrtc from "./views/lifegroup/roomGeneralViewManagement/RoomGeneralViewDetailWebrtc.vue"; //房间一览画面详情 使用webrtc  by guo 2020-7-23-9:43添加
import VideoDownTumblePlay from "./views/lifegroup/VideoDown/VideoDownTumblePlay.vue"; // 跌倒录像下载
import VideoDownCommonPlay from "./views/lifegroup/VideoDown/VideoDownCommonPlay"; // 48小时录像下载
import TumbleDown from "./views/lifegroup/VideoDown/TumbleDown.vue"//48下载子页面
import CommonPlayDown from "./views/lifegroup/VideoDown/CommonPlayDown.vue"//48下载子页面

// 日本居家
import serverManage from "./views/lifegroup/serverManage/serverManage.vue"; //服务类别管理
import BusinessAdd from "./views/lifegroup/BusinessManagementJP/BusinessAdd.vue"; //商家管理
import AlarmInformation from "./views/lifegroup/BusinessManagementJP/AlarmInformation.vue"; //报警信息处理
import userInformation from "./views/lifegroup/BusinessManagementJP/userInformation.vue"; //报警信息处理
import serverInformation from "./views/lifegroup/BusinessManagementJP/serverInformation.vue"; //服务履历管理
import selfInformation from "./views/lifegroup/BusinessManagementJP/selfInformation.vue"; //个人信息
import organizationalManagement from "./views/lifegroup/organizationalManagement/organizationalManagement.vue"; //机构管理
import oldmanWaringDetail from "./views/lifegroup/BusinessManagementJP/oldmanWaringDetail.vue"; //警报详情

//测试webrtc实时视频
import Test2 from "./views/Test2.vue";

//系统管理
let routes = [
  {
    path: "/login",
    component: Login,
    name: "login",
    hidden: true
  },
  {
    path: "/404",
    component: NotFound,
    name: "",
    hidden: true
  },
  {
    path: "/Setquestion", //设置问题
    component: Setquestion,
    name: "设置问题"
  },
  {
    path: "/PasswordForgot", //忘记密码
    component: PasswordForgot,
    name: "忘记密码"
  },
  {
    path: "/PasswordRetrieve", //密码找回
    component: PasswordRetrieve,
    name: "密码找回"
  },
  {
    path: "/",
    component: Main,
    name: "首页",
  },
  {
    path: "/home",
    component: Main,
    name: "首页",
    children: [
      /* life集团项目 */
      {
        path: "/RoomGeneralViewManagement",
        component: RoomGeneralViewManagement,
        name: "房间一览画面"
      }, //房间一览画面
      {
        path: "/RoomGeneralViewDetail",
        component: RoomGeneralViewDetail,
        name: "LIFE梅屋敷养老院"
      },
      {
        path: "/LifesignDetail",
        component: LifesignDetail,
        name: "生命体征视图详情"
      },
      {
        path: "/HabitableRoomManagement",
        component: HabitableRoomManagement,
        name: "居室管理"
      }, //居室管理
      {
        path: "/HabitableRoomDetail",
        component: HabitableRoomDetail,
        name: "居室详情"
      }, //居室详情
      {
        path: "/SensorSettings",
        component: SensorSettings,
        name: "传感器设置"
      }, //传感器设置
      {
        path: "/ResidentManagement",
        component: ResidentManagement,
        name: "入居者管理"
      }, //入居者管理
      {
        path: "/ResidentDetail",
        component: ResidentDetail,
        name: "入居者详情"
      }, //入居者详情
      {
        path: "/EquipmentManagement",
        component: EquipmentManagement,
        name: "设备管理"
      }, //设备管理 equipmentAdd
      {
        path: "/EquipmentStatus",
        component: EquipmentStatus,
        name: "设备在离线状态"
      }, //设备在离线状态   by xiang 2020-3-3
      { path: "/equipmentAdd", component: equipmentAdd, name: "设备管理添加" }, //设备管理
      {
        path: "/CameraManagement",
        component: CameraManagement,
        name: "摄像头管理"
      }, //摄像头管理
      {
        path: "/BedpadManagement",
        component: BedpadManagement,
        name: "床垫管理"
      }, //床垫管理
      {
        path: "/PeopleFeelManagement",
        component: PeopleFeelManagement,
        name: "人感红外管理"
      }, //人感红外管理
      {
        path: "/GatewayManagement",
        component: GatewayManagement,
        name: "网关管理"
      }, //网关管理
      {
        path: "/IndoorTemperatureManagement",
        component: IndoorTemperatureManagement,
        name: "室温管理"
      }, //室温管理
      {
        path: "/FacilityManagement",
        component: FacilityManagement,
        name: "设施管理"
      }, //设施管理
      {
        path: "/FacilityInformationEdit",
        component: FacilityInformationEdit,
        name: "设施详细编辑"
      },
      {
        path: "/FacilityAlarmColor",
        component: FacilityAlarmColor,
        name: "报警色设置"
      },
      {
        path: "/FacilityBuildFloorAdd",
        component: FacilityBuildFloorAdd,
        name: "楼栋以及楼层添加"
      },
      {
        path: "/FacilitySensorSet",
        component: FacilitySensorSet,
        name: "设施管理传感器设定"
      },
      {
        path: "/StaffManagement",
        component: StaffManagement,
        name: "工作人员管理"
      }, //工作人员管理
      { path: "/StaffCompile", component: StaffCompile, name: "工作人员信息" }, //工作人员信息的追加/修改/详情
      { path: "/PasswordChange", component: PasswordChange, name: "密码变更" }, //密码变更
      { path: "/VideoDownTumblePlay", component: VideoDownTumblePlay, name: "転倒アラート録画" }, //転倒アラート録画
      { path: "/VideoDownCommonPlay", component: VideoDownCommonPlay, name: "常時録画" },//常時録画
      { path: "/TumbleDown", component: TumbleDown, name: "TumbleDown" },//跌倒録画
      { path: "/CommonPlayDown", component: CommonPlayDown, name: "48Down" },//常時録画
      {
        path: "/RoomGeneralViewDetailWebrtc",
        component: RoomGeneralViewDetailWebrtc,
        name: "LIFE梅屋敷养老院"
      }, //by guo 2020-7-23-9:42添加

      // 日本居家
      { path: "/serverManage", component: serverManage, name: "服务类型管理" }, //服务类型管理
      { path: "/BusinessAdd", component: BusinessAdd, name: "商家管理" }, //商家管理
      {
        path: "/AlarmInformation",
        component: AlarmInformation,
        name: "报警信息处理"
      }, //报警信息处理
      {
        path: "/userInformation",
        component: userInformation,
        name: "用户信息管理"
      }, //用户信息管理
      {
        path: "/serverInformation",
        component: serverInformation,
        name: "服务履历管理"
      }, //服务履历管理
      {
        path: "/selfInformation",
        component: selfInformation,
        name: "个人信息管理"
      }, //个人信息管理
      {
        path: "/organizationalManagement",
        component: organizationalManagement,
        name: "机构管理"
      }, //机构管理
      {
        path: "/oldmanWaringDetail",
        component: oldmanWaringDetail,
        name: "警报详情"
      }, //警报详情
      { path: "/test2", component: Test2, name: "webrtc实时视频" }
    ]
  },
  {
    path: "*",
    hidden: true,
    redirect: { path: "/404" }
  }
];

export default routes;
